package com.deloitte.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.deloitte.util.StringUtilities;


@XmlRootElement(name = "slide")
public class SlideInfo implements Comparable<SlideInfo>{

	private String rootPath;
	private String filePath;
	private int index;
	private String contentType;
	private boolean flagVideo;
	private boolean flagImage;
	public static final String IMAGE_TYPE = "image";
	public static final String VIDEO_TYPE = "video";
	
	
	/**
	 * @return the rootPath
	 */
	@XmlElement
	public String getRootPath() {
		return rootPath;
	}
	/**
	 * @param rootPath the rootPath to set
	 */
	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}
	/**
	 * @return the filePath
	 */
	@XmlElement
	public String getFilePath() {
		return filePath;
	}
	/**
	 * @param filePath the filePath to set
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	/**
	 * @return the index
	 */
	@XmlElement
	public int getIndex() {
		return index;
	}
	/**
	 * @param index the index to set
	 */
	public void setIndex(int index) {
		this.index = index;
	}
	/**
	 * @return the contentType
	 */
	public String getContentType() {
		return contentType;
	}
	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	/**
	 * @return the flagVideo
	 */
	public boolean isFlagVideo() {
		return flagVideo;
	}
	/**
	 * @param flagVideo the flagVideo to set
	 */
	public void setFlagVideo(boolean flagVideo) {
		this.flagVideo = flagVideo;
	}
	/**
	 * @return the flagImage
	 */
	public boolean isFlagImage() {
		return flagImage;
	}
	/**
	 * @param flagImage the flagImage to set
	 */
	public void setFlagImage(boolean flagImage) {
		this.flagImage = flagImage;
	}
	@Override
	public int compareTo(SlideInfo o) {
		int comprator = 0;
		if(o != null){
			comprator = new Integer(this.getIndex()).compareTo(o.getIndex());
		}
		return comprator;
	}

}
